from selenium.webdriver.common.by import By
from base import Base
class Page(Base):
    def sou(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜商品名称 作者 出版社 ISBN")')
        ele=self.find_send(loc)
        return ele
    def sou1(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele = self.find_send(loc)
        return ele
    def dianjisousuo(self):
        loc = (By.ID,'com.kongfz.app:id/tvSearch')
        ele = self.find_send(loc)
        return ele
    def tu(self):
        loc = (By.XPATH,'(//android.widget.ImageView[@resource-id="com.kongfz.app:id/ivPic"])[7]')
        ele = self.find_send(loc)
        return ele
    def shoucang(self):
        loc = (By.XPATH, '//android.widget.TextView[@text=""]')
        ele = self.find_send(loc)
        return ele
    def meiyouzhaodao(self):
        loc = (By.ID, 'com.kongfz.app:id/tvContent')
        ele = self.find_send(loc)
        return ele
